package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._15组合模式._2公司管理;

//公司抽象类
abstract class Company{
    protected String name;
    public Company(String name){
        this.name = name;
    }

    public abstract void add(Company company);      //增加
    public abstract void remove(Company company);   //移除
    public abstract void display(int depth);        //显示
       
    public abstract void lineOfDuty();  //履行职责
}